package com.dd.dus.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dd.dc.entity.users.DRole;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * 角色信息表 服务类
 * </p>
 *
 * @author JueDream
 * @since 2021-03-12
 */
public interface IDRoleService extends IService<DRole> {

    List<DRole> findRoleByUserId(Integer userId);

    Page<DRole> queryRoleList(int page, int limit, String roleName);

    Integer insert(DRole role);
}
